﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Util;

namespace Hexacell {
    public class Marble {
        public enum MarbleType {
            None,
            Red,
            Orange,
            Yellow,
            Green,
            Purple
        }

        public Marble(Random random) {
            Type = (MarbleType)random.Next(EnumExtension.GetLength<MarbleType>() - 1) + 1;
        }

        public Marble(MarbleType type) {
            Type = type;
        }

        //public Vector2 Position { get; set; }
        public MarbleType Type { get; set; }

        public Color color() {
            switch (Type) {
                case MarbleType.Red: return Color.Red;
                case MarbleType.Orange: return Color.Orange;
                case MarbleType.Yellow: return Color.Yellow;
                case MarbleType.Green: return Color.Green;
                case MarbleType.Purple: return Color.Purple;
                default: return Color.Black;
            }
        }
    }
}
